package com.example.demo;

import java.util.Arrays;
import java.util.List;

/**
 * description： <br>
 * createTime: 2024/3/6 15:22 <br>
 *
 * @author zzh
 */
public class Test {

    public static void main(String[] args) {
        System.out.println(Son.class);
    }
}
class Parent<D> {
    protected D value;

    public D getValue() {
        return value;
    }

    public Response<List<D>> getValues() {
        return new Response<>(Arrays.asList(value));
    }

    public void setValue(D value) {
        this.value = value;
    }
}

class Son extends Parent<String> {
    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public Response<List<String>> getValues() {
        return new Response(Arrays.asList(value));
    }
}

class Response<D> {
    D data;

    public Response(D data) {
        this.data = data;
    }

    public D getData() {
        return this.data;
    }

    public void setData(D value) {

    }
}